package com.ruoyi.web.controller.cs;

import java.util.List;
import java.util.Map;

import com.ruoyi.common.core.controller.BasicsController;
import com.ruoyi.common.core.domain.Response;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.ResponsePageInfo;
import com.ruoyi.common.utils.poi.Excel2Util;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.cs.domain.TBackpackOperate;
import com.ruoyi.cs.service.ITBackpackOperateService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 后台背包操作记录Controller
 * 
 * @author ruoyi
 * @date 2021-04-02
 */
@Api(tags = {"后台背包操作记录"})
@RestController
@RequestMapping("/cs/operate")
public class TBackpackOperateController extends BasicsController
{
    @Autowired
    private ITBackpackOperateService tBackpackOperateService;

    /**
     * 查询后台背包操作记录列表
     */
    @ApiOperation("查询后台背包操作记录列表")
    @PreAuthorize("@ss.hasPermi('cs:operate:list')")
    @PostMapping("/list")
    public ResponsePageInfo<TBackpackOperate> list(@RequestBody TBackpackOperate tBackpackOperate)
    {
        startPage();
        List<TBackpackOperate> list = tBackpackOperateService.selectTBackpackOperateList(tBackpackOperate);
        return toResponsePageInfo(list);
    }

}
